package com.jianxiu.service;

import java.util.List;
import java.util.Map;

import com.jianxiu.bean.Result;
import com.jianxiu.bean.User;
import com.jianxiu.bean.task.Report;

public interface TaskService {
    Result report(Report report);

    List<Report> listWait(Long userId);

    List<Report> listOver(Long userId);

    List<Report> waitSure();

    Report getById(Long reportId);

    List<Report> overMaintain();

    List<Report> getByMainId(Long id, int[] stas);

    /**
     * 审核确认
     *
     * @param user
     * @param reportId
     * @param mainId
     * @return
     */
    Result sure(User user, Long reportId, Long mainId);

    /**
     * 删除提交
     *
     * @param user
     * @param reportId
     * @return
     */
    Result delete(User user, Long reportId);

    /**
     * 已维修
     *
     * @param user
     * @param reportId
     * @return
     */
    Result toMyOver(User user, Long reportId);

    /**
     * 已办结
     *
     * @param user
     * @param reportId
     * @return
     */
    Result toOver(User user, Long reportId);

    /**
     * 评价
     *
     * @param user
     * @param reportId
     * @param evalute
     * @return
     */
    Result evalute(User user, Long reportId, String evalute);

    /**
     * 待维修数据
     *
     * @return
     */
    List<Report> waitMain();

    /**
     * 已办结
     *
     * @return
     */
    List<Report> overList();

    List<Report> list(Map<String, Object> sp);

    int count(Map<String, Object> sp);
}
